﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Andrewl.XnaHelpers.Input
{
    public class InputManager
    {
        #region Declarations

        public Input_Keyboard keyboard;

        public Input_Mouse mouse;

        public Input_GamePad gamepad;

        public Input_ChatPad chatpad;

        #endregion

        #region Accessors

        public Input_Keyboard Keyboard
        { get { return keyboard; } }

        public Input_Mouse Mouse
        { get { return mouse; } }

        public Input_GamePad GamePad
        { get { return gamepad; } }

        public Input_ChatPad ChatPad
        { get {return chatpad; } }

        #endregion

        public InputManager()
        {
            keyboard = new Input_Keyboard();
            mouse = new Input_Mouse();
            gamepad = new Input_GamePad();
            chatpad = new Input_ChatPad();
        }

        #region Update Functions

        public void UpdateKeyboard()
        {
            keyboard.Update();
        }

        public void UpdateMouse()
        {
            mouse.Update();
        }

        public void UpdateGamePad()
        {
            gamepad.Update();
        }

        public void UpdateChatPad()
        {
            chatpad.Update();
        }
        #endregion

    }
}
